package com.mingtai.design.pattern.behavioralming.chainofresponsibility;

/**
 * @description: 责任链模式测试类
 * @author: mingtai
 * @createDate: 23:58 2021/1/5
 * @version: 1.0
 * 举例：valuation AbstractHandler
 *
 */

public class Test {
    public static void main(String[] args) {
        Approver articleApprove = new ArticleApprove();
        Approver videoApprove = new VideoApprove();

        Course course = new Course();
        course.setName("责任链模式。。");
        course.setArticle("课程的手记。。。");
        course.setVideo("課程的video。。。。");

        articleApprove.setNextApprover(videoApprove);
        articleApprove.deploy(course);
    }
}



